package com.ruoyi.hospital.service.doctor.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.doctor.DocMemberGroupRelationMapper;
import com.ruoyi.hospital.domain.doctor.DocMemberGroupRelation;
import com.ruoyi.hospital.service.doctor.IDocMemberGroupRelationService;

/**
 * 分组关联Service业务层处理
 * 
 * @author wendao
 * @date 2024-10-09
 */
@Service
public class DocMemberGroupRelationServiceImpl implements IDocMemberGroupRelationService 
{
    @Autowired
    private DocMemberGroupRelationMapper docMemberGroupRelationMapper;

    /**
     * 查询分组关联
     * 
     * @param id 分组关联主键
     * @return 分组关联
     */
    @Override
    public DocMemberGroupRelation selectDocMemberGroupRelationById(Integer id)
    {
        return docMemberGroupRelationMapper.selectDocMemberGroupRelationById(id);
    }

    /**
     * 查询分组关联列表
     * 
     * @param docMemberGroupRelation 分组关联
     * @return 分组关联
     */
    @Override
    public List<DocMemberGroupRelation> selectDocMemberGroupRelationList(DocMemberGroupRelation docMemberGroupRelation)
    {
        return docMemberGroupRelationMapper.selectDocMemberGroupRelationList(docMemberGroupRelation);
    }

    /**
     * 新增分组关联
     * 
     * @param docMemberGroupRelation 分组关联
     * @return 结果
     */
    @Override
    public int insertDocMemberGroupRelation(DocMemberGroupRelation docMemberGroupRelation)
    {
        return docMemberGroupRelationMapper.insertDocMemberGroupRelation(docMemberGroupRelation);
    }

    /**
     * 修改分组关联
     * 
     * @param docMemberGroupRelation 分组关联
     * @return 结果
     */
    @Override
    public int updateDocMemberGroupRelation(DocMemberGroupRelation docMemberGroupRelation)
    {
        return docMemberGroupRelationMapper.updateDocMemberGroupRelation(docMemberGroupRelation);
    }

    /**
     * 批量删除分组关联
     * 
     * @param ids 需要删除的分组关联主键
     * @return 结果
     */
    @Override
    public int deleteDocMemberGroupRelationByIds(Integer[] ids)
    {
        return docMemberGroupRelationMapper.deleteDocMemberGroupRelationByIds(ids);
    }

    /**
     * 删除分组关联信息
     * 
     * @param id 分组关联主键
     * @return 结果
     */
    @Override
    public int deleteDocMemberGroupRelationById(Integer id)
    {
        return docMemberGroupRelationMapper.deleteDocMemberGroupRelationById(id);
    }
}
